home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01b.txt / 000084_icon-group-sender_Thu Jul 5 08:57:06 2001.msg < prev    next >
Internet Message Format  |  2002-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f65FttA19157
  4.     for icon-group-addresses; Thu, 5 Jul 2001 08:55:55 -0700 (MST)
  5. Message-Id: <200107051555.f65FttA19157@baskerville.CS.Arizona.EDU>
  6. Date: Tue, 03 Jul 2001 17:37:42 -0600
  7. From: "Cheyenne Wills" <cheyenne_wills@qwest.net>
  8. To: icon-group@cs.arizona.edu
  9. Cc: "cactuspad53" <olfaceless@netzero.net>
  10. X-Accept-Language: en
  11. Subject: Re: Help
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14. Content-Length: 724
  15.  
  16. What your problem is, is that PRN is the name of a file.  PRN: (or
  17. LPT1:) is the
  18. MS-DOS name of the printer.
  19.  
  20. So..
  21. procedure main()
  22.    p := open( "PRN:", "w")
  23.    write( p, "Hello")
  24. end
  25.  
  26. In fact MS-DOS has a whole bunch of device driver names that can be
  27. accessed via
  28. the dev: format.
  29.  
  30. Cheyenne
  31.  
  32. cactuspad53 wrote:
  33. > I can't get icon to print my source code or to print anything to my =
  34. > printer.
  35. > I have a Compaq Presario, AMD Athlon 500 processor connected to an HP =
  36. > 712C printer.
  37. > Even the foloiwng code does nothing:
  38. > procedure main( )
  39. >     p :=3D open( "PRN", "w")
  40. >     write( p, "hello" )
  41. >      close(p)
  42. > end
  43. > Is there a setup required to get icon to recognize the printer?
  44. > Thank you,
  45. > Jim De Leo
  46.